//
//  BrowserViewController.h
//  MoneyLog
//
//  Created by Max on 11-4-10.
//  Copyright 2011年 wicresoft. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface BrowserViewController : UIViewController <UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate, UIWebViewDelegate,UISearchBarDelegate> {
    UITableView     *_tableView;
    
    UIToolbar       *toolbar;
    
    UIWebView		*_webView;												// web view
	CGRect			webViewNormal,webViewMaximum;
	UIView			*viewMask;												//view
	
	UILabel			*titleLable;											// web title
	UITextField		*urlText;												// url text
	CGRect			urlTextNormal, urlTextEditing, urlTextMinimum;			 
	UITextField		*searchText;											// search text
	CGRect			searchTextNormal, searchTextEditing, searchTextMinimum;	 
	UIButton		*cancelButton;											// cancel button
	CGRect			cancelButtonFrame;
	
	NSInteger		dialogResult;
    
    NSMutableData	*buffer; 
    
    NSURL           *url;
}
@property (nonatomic,retain) IBOutlet UITableView        *_tableView;
@property (nonatomic,retain) UIWebView			*_webView;					//webview
@property (assign)			 CGRect				webViewNormal;
@property (assign)			 CGRect				webViewMaximum;
@property (nonatomic,retain) UIView				*viewMask;					//view
@property (nonatomic,retain) UILabel			*titleLable;				//title lable
//@property (nonatomic,retain) UITextField		*urlText;					//url text
@property (assign)			 CGRect				urlTextNormal;
@property (assign)			 CGRect				urlTextEditing;
@property (assign)			 CGRect				urlTextMinimum;
//@property (nonatomic,retain) UITextField		*searchText;				//search text
@property (assign)			 CGRect				searchTextNormal;
@property (assign)			 CGRect				searchTextEditing;
@property (assign)			 CGRect				searchTextMinimum;
//@property (nonatomic,retain) UIButton			*cancelButton;				//cancel button
@property (assign)		     CGRect				cancelButtonFrame;

@property (nonatomic,retain) NSMutableData		*buffer; 

- (void)cancelAction:(id)sender;


@end
